package com.qk.service;

import com.qk.common.PageResult;
import com.qk.entity.Course;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CourseService {
    PageResult<Course> list(String name, Integer subject, Integer target, Integer page, Integer pageSize);

    void deleteById(Integer id);

    void addCourse(Course course);

    Course getById(Integer id);

    void update(Course course);

    List<Course> listAll();

    List<Course> setBySub(Integer subject);
}
